
/***
 ==============
 HTTP请求相关
 
 命名格式:(全都小写，要用到时一目了然)
 http_xxx
 ==============
 ***/ 
#ifndef iOS_HttpConfig_h
#define iOS_HttpConfig_h


//服务器地址
#define http_host_address                               @"http://www.tailinziben.com"
#define http_host                                       [NSString stringWithFormat:@"%@/p2p/api",http_host_address]
//http超时时间
#define http_time_out_second                            10.0
#define http_img_upload_time_out_second                 60.0
//返回信息
#define http_key_code                                   @"status"//状态码
#define http_key_msg                                    @"msg"//消息
#define http_key_data                                   @"data"//返回数据
//返回码
#define http_code_ok                                    0   //成功
#define http_code_error                                -1   //服务器报错
#define http_code_nonetwork                            -2   //无网络
#define http_code_session                              -999 //登录超时

//错误提示
#define http_msg_nonetwork                               @"网络异常，请检查网络状况"
#define http_msg_timeout                                 @"连接超时，请稍后再试"
#define http_msg_session                                 @"登录超时，请重新登录"

#endif
